package com.jz.community.moduleshopping.timeLimit.net;

import com.jz.community.basecomm.bean.BaseResponseInfo;
import com.jz.community.basecomm.constant.Constant;
import com.jz.community.moduleshopping.timeLimit.bean.LimitGoodsBean;
import com.jz.community.moduleshopping.timeLimit.bean.LimitTimeBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface LimitNetApi {
    @GET(Constant.TIME_LIMIT_TIME)
    Observable<LimitTimeBean> initTimeData(@Query("cityId") String cityId, @Query("page") int page, @Query("size") int size);

    @GET(Constant.TIME_LIMIT_GOODS)
    Observable<LimitGoodsBean> initGoodsData(@Query("cityId") String cityId, @Query("limitedStartTime") String startTime, @Query("limitedStopTime") String endTime, @Query("page") int page, @Query("size") int size);

    @POST(Constant.SEND_TIPS)
    Observable<BaseResponseInfo> sendTips(@Query("gid") long gid, @Query("startTime") String startTime);
}
